class Solution:
    def isValid(self, word: str) -> bool:
        if len(word) < 3:
            return False
        
        hasVowel = False
        hasCons = False
        for c in word.lower():
            if c in "aeiou":
                hasVowel = True
            elif c in "qwrtypsdfghjklzxcvbnm":
                hasCons = True
            elif c not in "0123456789":
                return False
        return hasVowel and hasCons